package com.mjt.admin.config;

import com.mjt.admin.interceptors.NoLoginInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
 * @author shkstart
 * @create 2021-10-27 15:09
 */

public class MVCConfig implements WebMvcConfigurer {

    //@Bean
    //public NoLoginInterceptor getNoLoginInterceptor(){
    //    return new NoLoginInterceptor();
    //}
    //
    //
    ///**
    // * @description 设置拦截规则
    // * @author 莫某人
    // * @date 15:32 2021/10/27
    // * @param null
    // * @return {@link }
    // **/
    //@Override
    //public void addInterceptors(InterceptorRegistry registry) {
    //    registry.addInterceptor(getNoLoginInterceptor())
    //    .addPathPatterns("/**")
    //    .excludePathPatterns("/index","/user/login",
    //            "/css/**","/error/**","/images/**",
    //            "/js/**","/lib/**")
    //    ;
    //}
}
